# -*- coding:utf-8 -*-
"""
Author：Administrator
Date:2021年03月08日
"""
from docx import Document
from docx.enum.text import WD_PARAGRAPH_ALIGNMENT
from docx.shared import Pt

doc = Document("test1.docx")

for paragraph in doc.paragraphs:
	paragraph.paragraph_format.space_before = Pt(12)
	paragraph.paragraph_format.space_after = Pt(12)

doc.save("段前与段后间距.docx")
